import _ from 'lodash'

const arr=['jack','tom','lucy','kate']

console.log(_.first(arr))  //jack
console.log(_.last(arr))  //kate
console.log(_.toUpper(arr))  // JACK,TOM,LUCY,KATE
console.log(_.reverse(arr))   //[ 'kate', 'lucy', 'tom', 'jack' ]
const r=_.each(arr,(item,index)=>{
    console.log(item,index)
})
console.log(r)

